package com.nvt.core.dao;

import java.util.List;
import java.util.Map;

import com.nvt.core.exception.NvtBusinessException;

public interface IJdbcDAO {

	/**
	 * @param entityName
	 * @param values
	 * @throws NvtBusinessException
	 */
	public void executeUpdate(String entityName, Object[] values)
			throws NvtBusinessException;

	/**
	 * @param entityName
	 * @param values
	 * @return
	 * @throws NvtBusinessException
	 */
	public Integer executeInsert(String entityName, Object[] values)
			throws NvtBusinessException;

	/**
	 * @param entityName
	 * @param values
	 * @throws NvtBusinessException
	 */
	public void executeDelete(String entityName, Object[] values)
			throws NvtBusinessException;

	/**
	 * @param entityName
	 * @param values
	 * @throws NvtBusinessException
	 */
	public List<Map<String, Object>> findByParameters(String entityName,
			Object[] values) throws NvtBusinessException;

	/**
	 * @param entityName
	 * @throws NvtBusinessException
	 */
	public List<Map<String, Object>> findAll(String entityName)
			throws NvtBusinessException;

}
